package com.vayne.demo;

import com.vayne.bean.Person;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author xuerui.zhang
 * @since 2020/4/6 下午9:47
 */
public class PersonFactoryBean implements FactoryBean<Person> {

    @Override
    public Person getObject() throws Exception {
        return Person.createPerson();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }
}
